import request from './request/index.js'

export async function getStoreStatus() {
  try {
    const res = await request.get('/system/store-status')
    return res.data
  } catch (err) {
    return Promise.reject(err)
  }
}

export async function getTodayBusiness() {
  try {
    const res = await request.get('/system/today-business')
    return res.data
  } catch (err) {
    return Promise.reject(err)
  }
}

export async function getInventoryWarning() {
  try {
    const res = await request.get('/system/inventory-warning')
    return res.data
  } catch (err) {
    return Promise.reject(err)
  }
}
